Phase 2 — Configure Data & Metrics Accuracy
In this phase, you will configure the settings that determine how LinearB interprets your engineering data. These choices directly affect metric accuracy across Dashboards, DORA, Goals, and reports.…
In this phase, you will configure the settings that determine how LinearB interprets your engineering data. These choices directly affect metric accuracy across Dashboards, DORA, Goals, and reports.
Goal of this phase: Ensure delivery metrics reflect real production work (not noise).
- Phase 1 — Connect Your Systems
- ➡ Phase 2 — Configure Data & Metrics Accuracy
- Phase 3 — Organize Teams & Ownership
- Phase 4 — Enable Automation & Insights
- Phase 5 — Verify Your Setup
Before You Begin
- Complete Phase 1 and confirm Git syncing is active.
- Make sure you know (or can confirm) how your organization defines a production release.
- If multiple teams release differently, decide whether you want one org-wide approach or per-repo overrides.
Start with an org-wide baseline configuration, then override per repository only when needed. This keeps reporting consistent and reduces long-term maintenance.
Step 1 — Configure Release Detection
Release detection is required for accurate deployment-related metrics such as: Deployment Frequency, Lead Time, and Deploy Time. It also determines when work is considered “released to production.”
Supported Release Detection Methods
Method A — Release by Tag
- Use this if you tag releases.
- Triggered when a Git push occurs to a tagged commit.
- You can filter release tags using a regex pattern (prefix/suffix).
Method B — Release by PR Merge to a Dedicated Branch
- Use this if merging PRs into a release branch (for example,
main) indicates deployment. - Set which branches LinearB should treat as “release branches” using regex.
- Note: This method may cause Deploy Time to register as
0in some workflows (because merge is treated as deploy).
Method C — Release by Direct Merge to a Branch
- Use this if your teams deploy via direct merges without PRs.
- LinearB detects the merged commit and marks included work as deployed.
- Set which branches LinearB listens to using regex.
Method D — Release by Deployment API
Use the Deployment API when your source of truth for release detection is your CI/CD platform or deployment system. In this method, LinearB detects releases based on reported deployment events.
- Use this if your source of truth is CI/CD or a deployment system.
- Best for high accuracy and multi-stage delivery workflows.
- Deployments are matched to merged branches using Git ancestry.
- Use this method when you want release detection to be driven by actual deployment activity rather than merge behavior alone.
See: Deployment API
Where to Configure Release Detection
Set the organization-wide release detection method
- Go to Company Settings → Advanced.
- Find the Release Detection section.
- Select the method your organization uses.
- Click Save.
Override release detection per repository (when needed)
Use per-repo overrides only when specific repositories have a different deployment process than the organization default.
- Go to Company Settings → Git.
- Click the gear icon next to the repository.
- In Release Detection, select the repo-specific method.
- Click Save.
Step 2 — Configure Branch Exclusions
Branch exclusions remove non-production branches from key calculations. This prevents work on long-lived non-release branches (or test branches) from distorting metrics.
Where to Configure
Set organization-wide branch exclusions
- Go to Company Settings → Advanced.
- Find Exclude Branches.
- Add one regular expression per line.
- Click Save.
Override branch exclusions per repository
- Go to Company Settings → Git.
- Click the gear icon next to the repository.
- Update Exclude Branches for that repo.
- Click Save.
Exclude branches that represent environments or staging lanes that should not count as production delivery (e.g.,
staging, integration, develop).
Step 3 — Configure File Exclusions
File exclusions prevent non-code changes from inflating metrics such as PR Size and New Code. This is especially important for compiled assets, lock files, generated bundles, and documentation-only updates.
Where to Configure
Set organization-wide file exclusions
- Go to Company Settings → Advanced.
- Find Exclude File Extensions.
- Add one regular expression per line.
- Click Save.
Override file exclusions per repository
- Go to Company Settings → Git.
- Click the gear icon next to the repository.
- Update Exclude File Extensions for that repo.
- Click Save.
Step 4 — Configure Draft Pull Request Handling
Draft pull requests represent early or incomplete work and can distort: Cycle Time, Pickup Time, and Review Time.
LinearB can treat a PR as draft based on:
- Configured labels (recommended)
- A configured title regex pattern (optional safety net)
Where to Configure
Set organization-wide draft PR settings
- Go to Company Settings → Advanced.
- Find Draft Pull Requests.
- Configure labels and (optional) title regex.
- Click Save.
Override draft PR settings per repository
- Go to Company Settings → Git.
- Click the gear icon next to the repository.
- Update Draft Pull Requests settings for that repo.
- Click Save.
Standardize on 1–2 labels (for example
wip and do_not_merge) across all teams.
Step 5 — Exclude Bot Accounts
Bot commits and automated PR activity can inflate metrics and create noise. Exclude bots to keep dashboards representative of real developer work.
- Send bot email addresses to LinearB Support for exclusion.
- Bot exclusion will be configurable in-product in a future release.
Need help? Contact Support
Step 6 — Configure Metric Calculation Method
This setting determines how LinearB aggregates time-based metrics across multiple pull requests, such as Cycle Time, Pickup Time, Review Time, and Deploy Time.
Supported aggregation methods
- Average (Mean) — sensitive to outliers
- Median — stable “typical” value
- 75th Percentile — captures the typical upper range (commonly used)
- 90th Percentile — highlights tail behavior (slowest cases)
How to choose
- Median: best if you want a stable measure and your org has occasional very large PRs.
- 75th percentile: best for a realistic enterprise view that reflects friction without being dominated by extremes.
- 90th percentile: best if you want high sensitivity to delays.
- Average: best when workflows are consistent and outliers are rare.
Where to configure
- Go to Company Settings → General.
- Find Metrics Calculation.
- Select the aggregation method.
- Click Save.
Verify Phase 2 — Confirm Accuracy Settings Are Applied
Before moving to Phase 3, confirm the settings are configured correctly.
Release Detection
- You can clearly state which method your organization uses.
- The selected method matches how production releases actually occur.
Exclusions
- Branch exclusions remove non-production branches.
- File exclusions remove generated or non-code files.
- Draft PR handling matches your organization’s draft conventions.
Metrics aggregation
- The selected calculation method matches how leadership expects to measure performance.
- Re-check release detection (most common root cause).
- Confirm exclusions match real branch and file patterns.
- Validate that bot accounts are excluded.
Next Step
Once accuracy settings are configured, define teams, users, and ownership mappings.
How did we do?
Phase 1 - Connect Your Systems
Phase 3 — Organize Teams & Ownership